#pragma once

typedef volatile struct {
	uint32_t lock;
	uint32_t rflags;
} lock_t;

// 实现位于src/utils/lock.S

extern void lock_acquire(lock_t *lock);
extern void lock_release(lock_t *lock);